import {
	request_post
} from './respones.js'

// 获取招募列表 场馆内
export const getZhaomuList = (id,openid) => {
	return request_post('/zhaomu_list', {
		'changguan_id':id,
		'open_id':openid
	})
}

// 加入招募
export const getJoinZhaomu = (openid, id,neirong) => {
	return request_post('/apply_join_zhaomu', {
		'open_id': openid,
		'zhaomu_id': id,
		'neirong':neirong
	})
}

// 创建招募
export const getCreateZhaomu = (data) => {
	return request_post('/create_zhaomu', {
		'open_id': data.openid,
		'name': data.name,
		'changguan_id': data.id,
		'duiyou_shuliang': data.shuliang,
		'start_time': data.userStartTime,
		'end_time': data.userEndTime
	})
}

// 查看申请列表
export const getShgenqingList = (openid) => {
	return request_post('/see_join_zhaomu_apply', {
		'open_id':openid
	})
}

// 同意申请
export const checkBtnTrue = (id) => {
	return request_post('/agree_join_zhaomu_apply',{
		'shenqing_id':id
	})
}

// 拒绝申请
export const checkBtnFalse = (id) => {
	return request_post('/disagree_join_zhaomu_apply',{
		'shenqing_id':id
	})
}

// 获取我的详情
export const getMyXiangqing = (openid,id) => {
	return request_post('/my_zhaomu',{
		'open_id':openid,
		'changguan_id':id
	})
	
}